import request from '@/utils/request'

export function GetDoctorByUserId (params) {
	// 接口请求
	return request({
		url: `/doctor/getDoctorByUserId/${params}`,
		method: 'get'
	})
}

export function EditDoctor (params) {
	return request({
		url: '/doctor/edit',
		method: 'post',
		data: params
	})
}

export function delDoctor (doctorIds) {
  return request({
    url: `/doctor/remove/${doctorIds}`,
    method: 'get'
  })
}

export function updateDoctorPoint (params) {
	return request({
		url: '/doctor/updateDoctorPoint',
		method: 'post',
		data: params
	})
}

export function GetDoctorById(doctorId) {
	return request({
		url: `/doctor/${doctorId}`,
		method: 'get'
	})
}
//根据科室查询医院
export function GetDoctorByDept(params) {
	return request({
		url: `/doctor/list`,
		method: 'get',
		params: params
	})
}

export function GetDoctorList(params) {
	return request({
		url: '/doctor/list',
		method: 'get',
		params: params
	})
}

export function selectDoctorList(params) {
	return request({
		url: '/doctor/selectDoctorList',
		method: 'get',
		params: params
	})
}
export function selectDoctorNum(params) {
	return request({
		url: '/doctor/selectDoctorNum',
		method: 'get',
		params: params
	})
}

// 导出医生
export function exportDoctor(query) {
	return request({
		url: '/doctor/export',
		method: 'get',
		params: query
	})
}

export function updateAuditStatusByIds(query) {
	return request({
		url: '/doctor/updateAuditStatusByIds',
		method: 'get',
		params: query
	})
}

// 新增医生
export function addDoctor(data) {
	return request({
		url: '/doctor/add',
		method: 'post',
		data: data
	})
}
// 新增医生
export function addDoctorTask(data) {
	return request({
		url: '/task/add',
		method: 'post',
		data: data
	})
}

export function getAllDoctor() {
	return request({
		url: '/doctor/getAllDoctor',
		method: 'get'
	})
}

export function sendTaskMsg(params) {
	return request({
		url: '/doctor/sendTaskMsg',
		method: 'get',
		params: params
	})
}


